'use strict';

let Koa = require('koa');
let bodyparser = require('koa-bodyparser');

let app = new Koa();

app.use(bodyparser());

let controller = require('./controllers');
app.use(controller());

let port = 8999;
app.listen(port);

console.log(`Server is running at http://127.0.0.1:${port}`);
